import AMapLoader from '@amap/amap-jsapi-loader';

export const getAMap = (plugins = []) => {
  return AMapLoader.load({
    key: process.env.VUE_APP_AMAP_KEY || 'b7da7086bbde0895eb77d06275de666a', // eslint-disable-line
    version: '2.0',
    plugins: plugins,
  });
};
